added code for fade layer

added fade layer code, its still not working though. I’m going to send
an email to Andrew tonight asking for his input.