add main class Terminal, added new examples, fixing unkown functions,
etc