Changes to KeaneWolpin to handle large states, fixed printing bugs