Merge pull request #1 from vbmithr/master

Fix compilation on MacOSX
Added a .gitignore
make doc now generates documentation