adding comments to functions and cleaning up