Changed interface to daemon to use JSON and changed standard for
variable names to lowerCamelCase