adding command line interface; adding Result type to contain results or errors