added comments and accessor methods