remove $file from constructor

issue #20