Improve the appearance of code and figures