major refactoring; using thor actions instead of manually getting stdin; started test suite; updated read me