Refactored code. Added light source to scene. Some detail improvements