Fixed bug where page would not load properly

An if statement was lacking an #ENDIF, so the indent was not unindented
Only display edit link for human participants
Fixed indentation levels

Previously, all optional questions would display regardless of whether or not
they should (e.g., female-specific questions would display regardless of the
participant's stated gender).
Cleaning up logic, fixed indent levels (again)