Addgraph

other functions to polish before adding graphing -- reopen branch with more relevant name!