Export improvements

Export now works to export the tetris sample. 
(Compiles fine yet the functionality is broken, great opportunity for debugging :) )