added nnetLib_mod to HW3