Threading added, late commit.

Added in support for multiple client functionality/connection.