Added comments and fixed error