Beta 0.5.2

Added a task manager. Right now it only controls the gravity, but has
potential to combine all threads. Comments will be added to the code
later. It will be worked to optimize for multiple cores.