added versioned deps for next 2 commits
now exports error type; removed redundant imports & unused names; Mode derives useful things now
implemented read-write thread; robust against error cases, but must be polled to recieve the exceptions