Total failure implemented
Removed bugs
Debugged and added test cases
Merge remote-tracking branch 'upstream/master'