remove unused depenency vcr and related code
first test at grouping patterns
proper docstring for group function
adds graph2 function - inline version of graph