added cheat sheet, added TERM handler