Added block_controller function

Documentation added in readme.rst