unused vars / fix SIGFPE
Merge pull request #56 from abma/master

unused vars / fix SIGFPE