cleaned up shadedErroBar

- add comments to the function