extracted module for CLI handling and did some cleanup on exports to generate nicer documentaiton