-Gave names to major anonymous functions
-Conformed format of comments