fix code sample and dead link