Cleans up code. Adds different item printers and command line options to choose between them (-p: Python, -s: Simple, -x: XML, -j: JSON).