change megahal lib to cobe, making text.txt as train file