Update instructions
Fix bug for some negative inputs