Implements selector class + tests + methods in catalogue

First implementation of the selector class with tests. New methods added to catalogue class.

N.B. Not up to date with current master