added docs and res