Code looks horrible currently, it's a Hack. It needs a nice revamp, some modularization and tests to make it contributor-friendly.