Add a fialure helper class to handle different types of failures, modifiy code to fit the latest db structure
Fixed a bug in control, add failurehelper and connect the accepted failure with mongodb
Fixed reference location
Fixed reference location again
Merge pull request #10 from bbai/FailureHelper

Add Failure Helper class to track different failures, modified code to meet the latest format, make accepted failure form functional.