BUG Fix Haralick computation

closes #23 on github with a patch from Tony S Yu who reported it.

Also adds a few sanity tests for Haralick well functioning.