updated tutorial to include the cleanup changes and middleware info