Refactored

Connected to API, now receiving data and correctly changing avatars