added explicit references and fixed a bug in begin block evaluation
minor fixes
explicit references and examples