Added comments, finished refactoring

Project is finished. Bugfixes may come, but probably not,because there
shouldn't be any bugs ;D