fix bug setting alarm value (dec instead of hex)

* fprintf success/failure to stderr for easy redirection
* print returned value properly