Commented various classes. Improved code readability. Fixed a lot of formatting.