File logging now working.

Thread stopping now working.

Receiving broadcast packets working (not multicast).