add comments; remove php4 constructor; whitespace cleanup