Implement working version of the leveling app (Nivelir). Needs refactoring and removal of unused code and comments.