Reduced code needed to validate answer field
Refactored code to reuse function for enumeration field
Added start of documentation