Program now retrieves latest record address
Fixed get latest address function and added memdump function
Minor changes and added funtion to print memdump