Add hierarchical prompt
Add test placeholder, and add doc for the 'when' API (rel #19)