Changes types.h to use macros
changed namespace from oastats to katina
added debug logging and temp fixups to shutdown erase