Add a test program for more complex if statements
More detailed logging, and remove unnecessary parse log statements