Initial work on code exporter