extended docs
changed error message in blockP
added var declarations and definitions to statements