Memory Debug Complete

Rolled back some changes to get a good base line that can get samples
and write to SD card.