restructure and fixes and improvements; added a debug variable to control debug prints fddd74b Dustin Haring commited on Mar 10, 2024