Doc/multiple apps

This fixes #195 and #197.