Some sanity checks that prevent crash while documenting my code.
Merge pull request #48 from hyperandroid/Fix/SanityChecks

Looks good, I will be building over the weekend and it will have this.

Thanks for contributing!