Ok, I ran memory diagnostic and it came out with healthy memory results. I currently have one stick of 512 DDR and it is compatible because it came with my computer. My computer is running at 30 degrees celcius so i don't think it is overheating and cleaned most of the dust off. My only guess is a motherboard problem, in that case i would buy a completely new system. As for the crashes, its still doing it, but like i said, it crashes more frequently the more programs im running or if im running a game. The only way i can run a game without it crashing when the game loads is by killing useless tasks in the Task Manager.
I have done tests on how much power my computer is consuming and my powersuply exceeds what my computer needs so it is most likley not that.