implemented the returns chart. Quite a few cleanup.