Fixed bugs, added tests/benchmark.py