tested added
missing require_once statement added
simplified toString(), precore 1.7