Extend doc on compilation flags, add .gitignore

I've spent some time trying to make a compilation flag appear at the end of the compilation command -- maybe including the following documentation can save time for someone else.