added portfolios controller and model
Added more logic for portfolio model