fix test program
adding memory dump
working on memory dump
code builds
fix off by 1 errors and make code more portable
code builds
another off by 1 fix