Updated API

Just some minor fixes for the API update, released as version 2.2.2.