Created a new controller for angular, which handles the result of an analysis