refactor transform 2d;
Refactor; Added docs; Added notes;