Updated docs for clustering. Added _setup function to applications.