Rewrote CMakeFiles, renamed dprintf

Conflicted with standard library function dprintf,
also added tags to .gitignore for those who use ctags