Conditional doc.read calls. Removed/edited some customer template comments