Fixed reading negative numbers
Merge pull request #2 from locksten/negative_input_fix

Fixed reading negative numbers