Fixed reversed outputs

The output variable setting was reversed and now has been reset back.
Merge pull request #7 from Darayus/master

Fix reversed output variable