refactored code, extended sp500_daily file, added tests for bsw_utils