Added design documentation.