added some pretty printing to parser