Adding head comments to the methods I created

as their names are not really descriptive.

There are some other non functional changes to the file. Like adding `'use strict';`, and removing lines empty lines.