renderer2: clean up, new lines removal, var scope, docu - refs #321