minor fix for output function generation
Merge branch 'master' of https://github.com/cody92/sa-project