Fix printEntries() and add read/write/append helper routines