Added main classes. Change Validator according to new Node and Link.