Fixed network protocol bug.

Some gui additions.