Added documentation.
Changed the structure of settings file.

Now we have one object settings with multiple objects inside it.
Moved code to new function calculateNumber.