Make output more human-readable, add command line parsing