Added initial stuff for object creator taking input and output, also added primobj and refobj creator