fix free list pointer bug, move memory inspection tools from fat library