Refactored code so that it can now be called as a library.

Status Job ID Name Coverage
  Build
canceled #105
build

 
  Test
canceled #107
allowed to fail
code_quality

canceled #106
test