documentation on constructor added