Refactor local block functions and add additional functionality.
Fix import namespace
Fix doc string examples
Update test cases for block functions
Update doc string for new functionality
Rename block_* functions to local_*
Fix deprecated function name referneces in doc strings
Use pad function and add option to define cval