added portfolio invest and simple regression code