Removed unsigned/signed compare warnings. Change all to size_t types
Various changes. Alter grid allocation. Add current block count