fixed accidentally used "and" statement instead of "&&"
fixed warnings
added build/ directory to .gitignore
added CMakeLists.txt