Rewrite Object class and documentation