Use bash shell arthmetic, remove redundant parameter expansion syntax.
Merge pull request #27 from pweldon/use-shell-arithmetic

Use bash shell arthmetic, remove redundant parameter expansion syntax.