Class update

Removed error handling, reworked rename() and some other functions,
added some phpdoc