fixed constructor

Fixed the constructur from the old style to the new style __constuct()
syntax