Added Magic Gem class, fixed some code based on tests
Added more tests to test project. WHEN RUNNING, DEBUG FIRST, THEN PERFORM TESTS