Add sbwrite utility and some documentation.