Added comments and organized code,