Split Coord and Chain to their own file

There is the PR with split Coord and Chain.