cleanup

Signed-off-by: Michael J. Reid <cybercritter@herostoybox.net>
Merge pull request #2 from MichaelJReid/autotools

Fixed eader traversal errors in Linux (Mint 17/g++ 4.8.2) and code cleanup. There is a still a proble m with Mac OSX - Yosimite.