comment added, bean factory being set up
unused variable removed, singular names used and since it returns true, cfif statement removed. localised variables, too
output=false on functions, unused functions removed, var scoped variables. Singular function names, indentation fixed. Mxunit tested (update function)
singular function names, unused functions removed
indentation normalised
style tags removed, form name removed
Function name that is called changed due to changing the name of the original functions. Different test data entered