added references and running example