Added ConsoleApplication

Fixed bugs in class Result