finished results analysis and implemented basic output