rename randsample to samplematrix
update docs on training types
fix semisup check
delete old comments
doc changes
remove rbmcalcerr
delete old code
spelling errors, typos etc.