Removed var_dump
move object instantiation logic to method
Addeds some documentation
doc fixup
Added some documentation
more documentation