improved genlab.js to give an error message if a modification has an
invalid length
added lab10.txt