Added instrument factory class to build instruments from definition files.