First of all, thank you for replying.
In step 1 as guest mode, my problem seemed to have gone away. Things worked great except that I had to bypass the parental controls on each website I visited. However, if this makes any difference, I did make a new account on my macbook after I started experiencing this problem. The new account worked flawlessly for a couple of days, but now it has the same problem, though it's still less frequent than my original account.
In step 2, I entered safe mode, and it was a very bad experience. When I opened Safari, the screen started flashing and it was very slow to load. Once a page loaded though it seemed to have everything appearing. However, it ended up being too slow, and it kind of froze the computer after I attempted to exit.
So what steps do I need to take now?