added a bunch of comments and cleaned out dead class instance variables