minor: removed warnings
reduced compiler warnings (float init, signed/unsigned compare)
fixed memory leaks unveiled by static code analysis
rollback accidental changes
Merge pull request #12 from holgerfriedrich/master

reduce compiler warnings and fix memory leaks