getBlocks() method implemented

Introduced for getBlocks from
https://github.com/zhuowei/RaspberryJuice/pull/6