Lots of memory optimizations to the reaction classes. Lots of cleanups.