Added main descartes architecture (no jsdoc).