fix bug on sourced percentage, add test

Because of a integer division error, with one sourced line out of two,
the sourcing percentage was zero instead of 0.5. Added a test to check
this case.
lint
use future division instead of forcing floats
Merge pull request #78 from lepistone/fix-float-source

fix bug on sourced percentage, add test