fix feature normalization for transformation matrix. It closes issue #20