fix is code complete and passing new tests
Merge branch 'develop' of https://github.com/stan-dev/stan into feature/issue-130
Merge pull request #156 from stan-dev/feature/issue-130

Fixes #130