Annotated the snake source code