adding a thickness varible layer
added a class to manage variations of layer thickness
corrected error in angle definitions