Better error handling, formatting, graphing