added flush--- functions

Added functions to flush the header, and both the entry table and the
free space table.  Also added functions for creating free space entries
and deallocating memory