remove superfluous 'deb'
move setfilem and geterrstr to individual functions
modify make clean to remove .mod files