fix nm_comments name
add rename function from plyr for convenience
update check_gradients to use dplyr rather than plyr (currently untested!)