extended messages api
Updated docs, minor bugfixes