Rigid trans

Could you review this code. Thanks!
This and other comments added to 2/3D transformations. Check the new commits.