Refactored object creation to conform to the constructor functions defined in provvis_decl.js.