Added in structure command_array and added function to add_command. not tested and functions arent used yet.
Merge branch 'newstruct'