add system for verifying that encoded frame size estimates are accurate; clean up...