cleaned up all the comments in code and added more useful comments