Parsing of topology in CSV

Topology is now parsed in CSV format and fixes to structure checker