Rewrite spec.blocks to more UMD-like way

closes #79