Add support for 2014-01-31 API
Fix doc
Add various casts
Fix various doc