Usability enhancements

* Move Scanner object to public static property
* Convert println methods to printf
* Add basic error handling