Debugging crashing Excel files (trying to make them crash in order to figure out what causes it) and some more refactoring.