Notes on modular representations of $p$-adic groups, and the Langlands correspondence