add codementor tutorial code
misc fixes