Removed the Write prefix from the methods..this is, after all, a writer.
added support for objects
support for arrays