added doc for constructor