Cleanup with misc functions
merge

Merge branch 'dev' of https://github.com/kkmann/cme into dev

Conflicts:
	R/sim.R