updating combined and compiled code. Also a minor fix for a problem introduced in csv and plotly codes during refactoring