Implemented Satisfiability and fixed stuff