Release 4.1.0

Bug fixes and API additions.

Change-Id: Iace6f3248a682b090227a6a7cec44c1f6e811fff