fix segmentation validation. also, fix some typos in the method.
fix segmentation validation. also, fix some typos in the method.

machinalis/iepy,machinalis/iepy,mrshu/iepy,machinalis/iepy,mrshu/iepy,mrshu/iepy