New function fetchUserData() introduced to API, total rewrite (not all)