Styles are now held in a hashmap in the Document class. Minor refactoring of code.