Removed commented codes
Added comments and moved the qc testing code validateResult into seperate functions, all qc criteria have there own function