Finished porting Config and option definition to XS