Better handling of ODF styles and error handling