docs and some cleaning