Added comments on constructor function