modify comments
refactor packet logging features