Finish up output formatting and tests. Add information to the README.