refactoring and first working version of tr cells
complete transform API + re-factor