Fixes #5 - validation for input points