Create output object
basic framework complete. 
todo: executecommand, event&action handlers