Updates packages and style.
Adds explanatory comments.