Header, pH and control parsing correctly. Coding complete. Updated comments.