New version and new API

closes #1
Release 2.2.0