Changes in constructor api
Documentation added