Implemented function to download letters as XML, bug-fixing