Wrote some classes for the client. I have not verified that i functions properly.