Layering and Wetting Transitions for an SOS Interface