added 2 control errors

Added the control error to allow just integers as input. Added to a
control error to stop allowing the user enter more than the fixed
amount of matrices