Added debug mode and print, Added tuiles namespace