Comments added to hsurvey code