Fix typo

lenght to length
Merge pull request #6 from ysrb/patch-1

Fix typo
Merge pull request #5 from Darayus/master

Remove unneeded code from a function
Added return to function
Bump up version
Fixed reversed outputs

The output variable setting was reversed and now has been reset back.