Merge pull request #6 from besser82/improvements

some minor improvements
Don't need flog of negative integers