[r] Refactor the internal validation (type 1)
Change the way of writing expansion to file
to use with various case (2 cols or 3 cols will
both be okie)
Test whether datastructure is correct or not
Internal Validation (type 2) - care about the connection