Various Improvements
Added logic for lights.
Fixed some various things.