Issue #8: added Hartley's method + fixes