Fixes -Wnewline-eof error
Fixes -Wconversion errors
Fixes -Wfloat-equal error
Fixes -Wsign-conversion 
Merge pull request #86 from jessedc/master

Fixes for several compiler warnings