Cleaned up code for branch 0.5:

-Removed debug statements
-Added javadocs documentation
-Removed unused references to Logger from the ThreadController class
-Formatted code