moved generate_reactions from a sample into a library
added more strict check for the object type to a parser
prepared for caching in a species