Implemented ambient occlusion.
Minor fixes.