add entry_t and entry_ptr_t structs, date format function, and pack structs