Added formatting and naming conventions. Added TODO markers. Added comments to all functions.