added partially done json schema for configuration
fixed bug when hostname of server is not given