Implemented pickle for better data handling, added a testing client.