Added BufferedWriter so it writes output to html file for easier viewing