Solved most questions, just need the questions highlighted in green to be solved. O also attached the portfolio optimizer for use in question 3.