Fixed syntactic errors.
Fixed errors in construcotr.