updated sun count
Added debug flag to object