added a bunch of comments, deleted some extraneous stuff