Code directory clean up

Moving older code and examples to ‘legacy’