Initial implementation of getblocks
Remove debugging output