Throw error instead of util.error call on missing params in constructor.
Removed private variables that was not necessary.