fix to make functions for translating and rotating usable, clean up, removal of deprecated functions.