Merge pull request #74 from kumarshantanu/master

fix #73 by setting specific properties before Nightcode init