Tidying up some style and documentation.