Complete source code with documentation.