Initial commit to v2
Fixed line endings
Old code moved to legacy directory