Fixed a bugs with is_ventral

And also another bug with how np.histogram is called.
Simple typo fixes

Also removed debugging code