Coded the disconnect function, and started the register function. Found that the protocol needed to be written up before other major commits.