Added console helper functions
handle errors on file write
update the escript
Update to 0.14.1 use new escript structure