some fixes according to Lqi's remarks:
rename toString into exprToString.
add empty line between include.
rename most variables in IsASwap.