add easy fixes for ternary ifs, and other minor whitespace fixes
rough first cut at for loop translation
print empty functions better
add support for elif
add a partial fix for vars - at some point globals should be detected