doc and a little testing