Fix double constatns

some constants were double, M_PI was sometimes inherided as double

added -Wdouble-promotion to makefile warnings
Merge pull request #175 from ledvinap/fix-double-promotion

Fix double constatns