made the class unit testable and and the free method
Merge pull request #10 from KIllin-A13/master

made the class unit testable and and the free method