[ ] Testing suite. This felt like a really big one that should be it's own issue. Also, I'm not familiar enough with the underlying functions to tackle yet.
[ ] code longer than 80 characters. This seems worth fixing, but I think there's a lot of opportunities to refactor and that's a better approach than reformatting right now.
Not pursued: