Support for different generated resources

Added support for reactors to generate other resources. Recommented some code, preparing for large revision