Change the code to be standard through the module

Some of the general changes that happened:
    - Make the names of some functions more descriptive.
    - Add a description to all the functions
    - Use camelcase for all the function names