Add new argument for known_hmda

also refactored some of the code.  It still uses a lot of memory to process, but the script doesn't crash. So it's like more awesome with less frustrations.