Merge pull request #18 from TheMasster12/master

Add tests to achieve near-complete coverage.
Merge pull request #19 from TheMasster12/master

Add contrast function.

Close #9.