Comment: explain parseFrame control flow