adds docs and cleans cruft
fixes np.ndarray is not hashable error