Added comments and made little changes to code