Added comments, and cleaned up some un-needed code