Adds an infinite await method for convenience. Also adds some API docs.