nicer docs
cleanup autotesting
nicer protocol handling