Merge pull request #24 from IanJRigg/master

grabbing Ian's latest
handling case 3 and 4, TODO handle byte for char, errorchk
Merge pull request #102 from Ricky1833/master

all format types working