Rakefile: use red for fail on error 'on'
lib: define class
intialiase nmatrix elements **untested**