Epimodel

Added most backend functions and updated frontend