cleaned up code, took out all unnecessary comments