added NaN test for tanh
added doc for tanh
Merge branch 'develop' into feature/test-nan-tanh
Merge branch 'develop' into feature/test-nan-tanh
Merge pull request #998 from stan-dev/feature/test-nan-tanh

Feature/test nan tanh