Added support for an init method which will be called right after the object is constructed. Renamed serializableObject() to serializeObject().