Writing documentation and tests
Some minor changes in Class.pm