added struct module for the configuration
changed config to use new struct, currently always uses default
updates to use configuration struct, error corrections for encoding / decoding config, updated server to use int control