implemented __get_packed_size(), renames, moderate code re-organisation