[FEATURE] Add comments and inline-if fix

Yes you are right. At first I thought it's (python inline if) like in Perl. I hope that now everything is correct.