cleaned up memlogPopWithError; added memlogPopWithErrorInst
add infrastructure for memlog-based ops
working and mostly correct memory system
add pretty printing and scaffolding for simplification