Fix typo, restructure code, add basic error message for 0 input, hide result if it’s 0