Revised process flow diagrams, moved json and templates to api folder