Cleaned up the code and commented blocks of code
cleaned up code and added comments