add file output
Add initial work on simulator