put in the comments and got rid of the useless code