Refactored xml read/write, FilesController now reads files from library