Minor changes to constructor

Some minor coding errors fixed