removed executables and small corrections to matgen.cpp