Significantly changed logging, making it faster and more legible.  Fixed random not being random