Added comments and reading JSON method