fixed bug concerning negative numbers, added example in readme