Added Layer Functionality. Added class checks to avoid errors. Lightened scene attributes