refactoring; debugging edgar table extractor