added api doc and hueapi ref doc
merge in joes new code