fixed some issues on gz and pz. got the correct number of visual words in. Still need to compare