Moved wrapPrisonerTypes function call into prepareList function.
Removed unused prisTypeNum variable from getRowsFromPrisonerSections.
Simplified getRows functions and variable names.