implemented __get_packed_size(), renames, code re-organisation