added a specification for inputs/outputs. fixes #224