Implement if statements. TODO: refactor gen_stmt()
Generate writelns, refactor gen_stmt()
Generate code for while statements