Added declare.processNameByPath, simplified and corrected examples