Fix up sample app. Add constructor to class to pass in API info