Handle nested if/then/else and indexed params

Correct README as well