Added code documentation following the guidelines
Fixed minor typo in a javascript tag