Add module comments, some code cleanups.