updated flows and repository functions, added Rest to pom