Fixes to user guide
Fixed lots of errors in User Guide, especially in equations
Merge pull request #568 from peastman/docs

Fixes to documentation
Merge pull request #569 from peastman/master

Fixed compilation error on some compilers
Merge pull request #570 from peastman/master

Fixed compilation errors on Windows