adding arg parse stuff (basic) and removing reference tcl code, have that elsewhere