add extensive print statements for future fault finding. <TODO>Seems to be a problem with browser notloading</TODO>