Moved packet queue code to separate file, started tutorial 4