Main Galette source code