Merge pull request #20 from IanJRigg/master

grabbing latest
added in check_addr_mode() function
Merge pull request #88 from Ricky1833/master

added changes