Major refactoring: cleaner approach, getting rid of all clang warnings, fixing lots of bugs and adding aditional features.
Updates sample project