Moved packet allocation prior to logging statement.  Minor commenting fixes