error handling commit

added error handling for NaN, numbers >100 & <1