Separation code from report

Use
https://www.sharelatex.com/project/534f79a2b2b9d2e11c22c812?r=d835e052&r
s=ps&rm=d for report.