code clear and docs update