Bugfix in def of 'ratio' (inverse) and added outputs