convention/formatting improvements to rendered php output