Added comments. Cleanup.