Added comments and updated some code