Fix for #109. Prevents negative integers being specified for number of instances.
Merge pull request #172 from johanatan/preventNegativeInstances

Fix for #109. Prevents negative integers being specified for number of instances.