added support for uploading files. fixed problem with author field mapping