moved last/random into Frequency class to improve performance (minimal, but it helps).  Also put all debug behind a const bool.