modified templates.  Changed pretty print function to fix line breaks bug. no dice