Refactor/generic loader

Further refactoring: refactored reaction loading