added some pretty-print functionality and confirmed working!