Made light attributes working. Added object to map conversion, api to property name conversion and right indexing of strings.