Improved octave calculation
Merge pull request #1 from gehaxelt/some_improvements

Improved octave calculation, looks reasonable , maybe its bad for the readability of the code