added UUID generator to build function. Rather verbose console output atm