clean docs and code