updated notes and fixed example