Improvements for transf_by_grid. Added working, unfinished scene code.