DCS Code refractoring according to R3ABM

The existing Original Code should be refactor to make possible some further extensions (e.g. CCS, DV-A (GPS), etc) in a simply way.