added error bar to group figure
cleaned the code
added two type of function to use label as the group indicator