Saving of Open Annotation format. Refactoring and exceptions handling.