app: removed unneeded error.
topics: be more robust with the parameters given to the API.
app: merged the getName and the getValue functions.