Debug

Added Expand and ExpandThenExit methods to replace the use of var_dump()
or print_r(). Need to refactor these to accept variable inputs.