added support fot GetNewLights()
moved parse error to it's own function
shared parse lights
added tests and clean up error messages
go fmt