Refactoring

Finished initial refactoring, all variables, functions, etc. renamed.
Code became clear and ready to implement new features.