Added comments and description of methods