Version 0.1 - refactored to use promises and added command line options

Fixed in 85dec9e