Reformatted comments and renamed functions
Updated README