add ArrayBuffer conversion, synchronous test state queries, documentation