Changed some function definitions to static definitions.
Fixed some bugs and added headers.
Started to implement the client.