flesh out unittests, command line reader. make it actually work! (Seemingly)