Merge pull request #1 from petersohn/master

Some improvements
Merge pull request #2 from petersohn/master

Some improvements
Replaced M_PI constants with boost constants

http://www.boost.org/doc/libs/1_55_0/libs/math/doc/html/math_toolkit/tutorial/non_templ.html