cleanup code, harmonise spacing etc.
add flags for 'dont know gender' etc.