converted board size to byte and included check

Includes the javadoc changes, also crashes program if the size is
invalid....