NMLedit function

added NMLedit function; added functionality to ignore comments and lines
where string appears more than once