Improved interface

plus a simple i/o script