Improve makefiles and documentation.