Fixed some bugs, added custom blocks, added tests, updated README.