bug fix for pull request 82, issue 90. s.bounds is now checked for null.
really?? OMG s.bounds not null not s..
more thorough undefined checks
Merge pull request #91 from nmccready/feature/issue_90_bounds_optional

Feature/issue 90 bounds optional