Added jsdocs for all functions

Also renamed 'displayCtrl' to 'displayedMethod' for clarity.