Update library to 2.2.1. Minor bug fixes.