added affix functionality
pulled john's changes
fixed 32/64 bit bug
Merge pull request #183 from hal3/master

added affix functionality