Fixed a segfault in the main program. Began implementing the client code.