Added ambient lights.
Code clean-up.
Some bugfixes.