Added comments and description for methods.