removed hasattr
expanded a doc string
updated doc string
updated comment
updated comments
updated comment
removed extraneous import
updated docstring with Jai's suggested text
removed redundant error checking
Name -> InputName
cleaned up test code, explicit check for Parameter is not None