Resolves #46 (finally!); fixed bugs in prettyRender.