Refactoring in process

Added parsing of the ports and generic clauses.