Added analyse results for API results
updated console app to use API