fixed bug where calling set with a hash didn't aways work
support logging, for debug purposes
fixed minor typo
turns out the parser was unable to handle -ve numbers ... fixed