Updated API, added detailed specification of shaping layer