Finished commenting and cleaning up code -Sneha