in response to #102

in response to #102, corrected the idf computation and updated the unit tests to test against manual computations on the example from the readme. All unit tests passed.