Update comments

Added more detailed comments, removed extraneous code