Everything now works. Things aren't lit if they should not be. It all came down to a 'avrundningsfel'. Time to clean up code and implement movin lights. yeayea