correctly sets default value for hashes, adds print stats method