fixed some bugs, updated release notes, added tests