added simp rules
Added testing file
added some mult rules
Added test cases for rules, minor bug fixes
minor fixes, and removal of code redundancies
added foil rule and test