added comments, removed unused imports, improved get_packet_processor