workbook write function and formatting loop with commandline user input
added