added docs for constructor