added support for class methods + more stuff in the library