added message for invalid numbers/range (issue #1)