added user action loop
fixed postfix calculation
Merge pull request #6 from dan-hill/fix-postfix-calculation-logic

Fix postfix calculation logic