- moved packet_t members to private, added getter and setters
- cleaned code of different states - added additional notify handling