Some code clarifications