Add undefined checks and warnings. Issue #45
Merge pull request #59 from playsign/threegroup-warnings

Add undefined checks and warnings. Issue #45