refactoring
Removed json output from request that produce an http error.
added functions to get name and id from token. Function to return summary of all items. Some refactoring