Large split of code

Put methds of cnct and series into separate files.
Minor edit