Added support for multiple duties in an interface. This fixes issue #13 and fixes issue #15.