added NaN test for check_finite
added doc in code for check_finite
Merge pull request #913 from stan-dev/feature/issue-891-check-finite-nan

Feature/issue 891 check finite nan