minor updates
Added docs and misc code