Changes to endpoint
Log_packet fix
Broke endpoint packet sendqueue
Merge pull request #240 from NielsZeilemaker/improve_endpoint

Changes to endpoint