Fix tostring formatting
Improve packetlogger, add file size limit
Cleanup