Added .gitignore
Fixed compiler warnings (no break at the end of case)
Fixed compiler warnings (add explicit braces to avoid dangling else)
Added support for doxygen.