Restructure of internal object calls

If array only has one item remove it from array and assign it as a
single object.
Added build object function
added ow
added oh
added ot