Fixed a bug in server.
added settings.
Added client