output more natural code for if statements, reducing indents
add comments
add a benchmark test script
add TODO tests