matrix transformation bug fixes, added scene manager