First version of cmake build files.
Added .gitignore file.
Cmake files for tools.
Fixed some warnings.
Removed Makefile and updated doc.