Fixes#1 write files fix and arch changes to enable Akka intergration in
future