Generating .nw file