Separated to classes + Start of Documentation

Separated some of the code in the main to other classes, changed names
to classes, methods and some arrays. Started documentation for the
project following the steps.