diff --git a/Doc/image77.html b/Docs/image77.html
similarity index 100%
rename from Doc/image77.html
rename to Docs/image77.html
diff --git a/Doc/img-alpha.html b/Docs/img-alpha.html
similarity index 100%
rename from Doc/img-alpha.html
rename to Docs/img-alpha.html
diff --git a/Doc/img-asciiart.html b/Docs/img-asciiart.html
similarity index 100%
rename from Doc/img-asciiart.html
rename to Docs/img-asciiart.html
diff --git a/Doc/img-bitplane.html b/Docs/img-bitplane.html
similarity index 100%
rename from Doc/img-bitplane.html
rename to Docs/img-bitplane.html
diff --git a/Doc/img-cadres.html b/Docs/img-cadres.html
similarity index 100%
rename from Doc/img-cadres.html
rename to Docs/img-cadres.html
diff --git a/Doc/img-calculs.html b/Docs/img-calculs.html
similarity index 100%
rename from Doc/img-calculs.html
rename to Docs/img-calculs.html
diff --git a/Doc/img-combine.html b/Docs/img-combine.html
similarity index 100%
rename from Doc/img-combine.html
rename to Docs/img-combine.html
diff --git a/Doc/img-couleurs.html b/Docs/img-couleurs.html
similarity index 100%
rename from Doc/img-couleurs.html
rename to Docs/img-couleurs.html
diff --git a/Doc/img-dessin.html b/Docs/img-dessin.html
similarity index 100%
rename from Doc/img-dessin.html
rename to Docs/img-dessin.html
diff --git a/Doc/img-detect.html b/Docs/img-detect.html
similarity index 100%
rename from Doc/img-detect.html
rename to Docs/img-detect.html
diff --git a/Doc/img-devel.html b/Docs/img-devel.html
similarity index 100%
rename from Doc/img-devel.html
rename to Docs/img-devel.html
diff --git a/Doc/img-df3.html b/Docs/img-df3.html
similarity index 100%
rename from Doc/img-df3.html
rename to Docs/img-df3.html
diff --git a/Doc/img-dither.html b/Docs/img-dither.html
similarity index 100%
rename from Doc/img-dither.html
rename to Docs/img-dither.html
diff --git a/Doc/img-effets.html b/Docs/img-effets.html
similarity index 100%
rename from Doc/img-effets.html
rename to Docs/img-effets.html
diff --git a/Doc/img-essais.html b/Docs/img-essais.html
similarity index 100%
rename from Doc/img-essais.html
rename to Docs/img-essais.html
diff --git a/Doc/img-fichiers.html b/Docs/img-fichiers.html
similarity index 100%
rename from Doc/img-fichiers.html
rename to Docs/img-fichiers.html
diff --git a/Doc/img-filtres.html b/Docs/img-filtres.html
similarity index 100%
rename from Doc/img-filtres.html
rename to Docs/img-filtres.html
diff --git a/Doc/img-marquage.html b/Docs/img-marquage.html
similarity index 100%
rename from Doc/img-marquage.html
rename to Docs/img-marquage.html
diff --git a/Doc/img-mires.html b/Docs/img-mires.html
similarity index 100%
rename from Doc/img-mires.html
rename to Docs/img-mires.html
diff --git a/Doc/img-op2x2.html b/Docs/img-op2x2.html
similarity index 100%
rename from Doc/img-op2x2.html
rename to Docs/img-op2x2.html
diff --git a/Doc/img-operat.html b/Docs/img-operat.html
similarity index 100%
rename from Doc/img-operat.html
rename to Docs/img-operat.html
diff --git a/Doc/img-patterns.html b/Docs/img-patterns.html
similarity index 100%
rename from Doc/img-patterns.html
rename to Docs/img-patterns.html
diff --git a/Doc/img-plotters.html b/Docs/img-plotters.html
similarity index 100%
rename from Doc/img-plotters.html
rename to Docs/img-plotters.html
diff --git a/Doc/img-povhf15.html b/Docs/img-povhf15.html
similarity index 100%
rename from Doc/img-povhf15.html
rename to Docs/img-povhf15.html
diff --git a/Doc/img-ptlist.html b/Docs/img-ptlist.html
similarity index 100%
rename from Doc/img-ptlist.html
rename to Docs/img-ptlist.html
diff --git a/Doc/img-showdiff.html b/Docs/img-showdiff.html
similarity index 100%
rename from Doc/img-showdiff.html
rename to Docs/img-showdiff.html
diff --git a/Doc/img-stereo.html b/Docs/img-stereo.html
similarity index 100%
rename from Doc/img-stereo.html
rename to Docs/img-stereo.html
diff --git a/Doc/img-television.html b/Docs/img-television.html
similarity index 100%
rename from Doc/img-television.html
rename to Docs/img-television.html
diff --git a/Doc/img-texte.html b/Docs/img-texte.html
similarity index 100%
rename from Doc/img-texte.html
rename to Docs/img-texte.html
diff --git a/Doc/img-warp.html b/Docs/img-warp.html
similarity index 100%
rename from Doc/img-warp.html
rename to Docs/img-warp.html
diff --git a/Doc/libimage.css b/Docs/libimage.css
similarity index 100%
rename from Doc/libimage.css
rename to Docs/libimage.css
diff --git a/Doc/libimage.html b/Docs/libimage.html
similarity index 100%
rename from Doc/libimage.html
rename to Docs/libimage.html
diff --git a/Lib/Makefile b/Lib/Makefile
new file mode 100644
index 0000000..9e06f8a
--- /dev/null
+++ b/Lib/Makefile
@@ -0,0 +1,23 @@
+#-----------------------------------------------------------------
+#
+#
+#
+#-----------------------------------------------------------------
+
+include ../Paramakes.mk
+
+DEPS = ../tthimage.h Makefile
+
+#-----------------------------------------------------------------
+
+
+image.o: image.c $(DEPS)
+
+msglib.o: msglib.c $(DEPS)
+
+#-----------------------------------------------------------------
+
+foo: foo.c $(DEPS) image.o msglib.o
+ gcc $(CFLAGS) $< image.o msglib.o -o $@
+
+#-----------------------------------------------------------------
diff --git a/Lib/README.md b/Lib/README.md
new file mode 100644
index 0000000..fc9b0be
--- /dev/null
+++ b/Lib/README.md
@@ -0,0 +1,4 @@
+# The tTh image processind library
+
+Ugly software born around 1995 on a MS-Dos 286 computer.
+
diff --git a/anamorphose.c b/Lib/anamorphose.c
similarity index 100%
rename from anamorphose.c
rename to Lib/anamorphose.c
diff --git a/basic_io.c b/Lib/basic_io.c
similarity index 100%
rename from basic_io.c
rename to Lib/basic_io.c
diff --git a/bitblt.c b/Lib/bitblt.c
similarity index 100%
rename from bitblt.c
rename to Lib/bitblt.c
diff --git a/bitplanes.c b/Lib/bitplanes.c
similarity index 100%
rename from bitplanes.c
rename to Lib/bitplanes.c
diff --git a/bmp.c b/Lib/bmp.c
similarity index 100%
rename from bmp.c
rename to Lib/bmp.c
diff --git a/calcluts.c b/Lib/calcluts.c
similarity index 100%
rename from calcluts.c
rename to Lib/calcluts.c
diff --git a/calculs.c b/Lib/calculs.c
similarity index 100%
rename from calculs.c
rename to Lib/calculs.c
diff --git a/classif.c b/Lib/classif.c
similarity index 100%
rename from classif.c
rename to Lib/classif.c
diff --git a/col_reduc.c b/Lib/col_reduc.c
similarity index 100%
rename from col_reduc.c
rename to Lib/col_reduc.c
diff --git a/col_xyz.c b/Lib/col_xyz.c
similarity index 100%
rename from col_xyz.c
rename to Lib/col_xyz.c
diff --git a/colors.c b/Lib/colors.c
similarity index 100%
rename from colors.c
rename to Lib/colors.c
diff --git a/colors2.c b/Lib/colors2.c
similarity index 100%
rename from colors2.c
rename to Lib/colors2.c
diff --git a/combine.c b/Lib/combine.c
similarity index 100%
rename from combine.c
rename to Lib/combine.c
diff --git a/combine2.c b/Lib/combine2.c
similarity index 100%
rename from combine2.c
rename to Lib/combine2.c
diff --git a/combine3.c b/Lib/combine3.c
similarity index 100%
rename from combine3.c
rename to Lib/combine3.c
diff --git a/combine4.c b/Lib/combine4.c
similarity index 100%
rename from combine4.c
rename to Lib/combine4.c
diff --git a/combine5.c b/Lib/combine5.c
similarity index 100%
rename from combine5.c
rename to Lib/combine5.c
diff --git a/combine6.c b/Lib/combine6.c
similarity index 100%
rename from combine6.c
rename to Lib/combine6.c
diff --git a/combine_rnd.c b/Lib/combine_rnd.c
similarity index 100%
rename from combine_rnd.c
rename to Lib/combine_rnd.c
diff --git a/contours.c b/Lib/contours.c
similarity index 100%
rename from contours.c
rename to Lib/contours.c
diff --git a/contrast.c b/Lib/contrast.c
similarity index 100%
rename from contrast.c
rename to Lib/contrast.c
diff --git a/detect.c b/Lib/detect.c
similarity index 100%
rename from detect.c
rename to Lib/detect.c
diff --git a/detect2.c b/Lib/detect2.c
similarity index 100%
rename from detect2.c
rename to Lib/detect2.c
diff --git a/dither.c b/Lib/dither.c
similarity index 100%
rename from dither.c
rename to Lib/dither.c
diff --git a/dither2.c b/Lib/dither2.c
similarity index 100%
rename from dither2.c
rename to Lib/dither2.c
diff --git a/dither3.c b/Lib/dither3.c
similarity index 100%
rename from dither3.c
rename to Lib/dither3.c
diff --git a/dither4.c b/Lib/dither4.c
similarity index 100%
rename from dither4.c
rename to Lib/dither4.c
diff --git a/effects.c b/Lib/effects.c
similarity index 100%
rename from effects.c
rename to Lib/effects.c
diff --git a/effects2.c b/Lib/effects2.c
similarity index 100%
rename from effects2.c
rename to Lib/effects2.c
diff --git a/effects3.c b/Lib/effects3.c
similarity index 100%
rename from effects3.c
rename to Lib/effects3.c
diff --git a/eps.c b/Lib/eps.c
similarity index 100%
rename from eps.c
rename to Lib/eps.c
diff --git a/essais.c b/Lib/essais.c
similarity index 100%
rename from essais.c
rename to Lib/essais.c
diff --git a/filtadapt.c b/Lib/filtadapt.c
similarity index 100%
rename from filtadapt.c
rename to Lib/filtadapt.c
diff --git a/filtres.c b/Lib/filtres.c
similarity index 100%
rename from filtres.c
rename to Lib/filtres.c
diff --git a/foo.c b/Lib/foo.c
similarity index 100%
rename from foo.c
rename to Lib/foo.c
diff --git a/gadgrect.c b/Lib/gadgrect.c
similarity index 100%
rename from gadgrect.c
rename to Lib/gadgrect.c
diff --git a/gamma.c b/Lib/gamma.c
similarity index 100%
rename from gamma.c
rename to Lib/gamma.c
diff --git a/glitch.c b/Lib/glitch.c
similarity index 100%
rename from glitch.c
rename to Lib/glitch.c
diff --git a/gray_ops.c b/Lib/gray_ops.c
similarity index 100%
rename from gray_ops.c
rename to Lib/gray_ops.c
diff --git a/image.c b/Lib/image.c
similarity index 100%
rename from image.c
rename to Lib/image.c
diff --git a/imprime.c b/Lib/imprime.c
similarity index 100%
rename from imprime.c
rename to Lib/imprime.c
diff --git a/luts15bits.c b/Lib/luts15bits.c
similarity index 100%
rename from luts15bits.c
rename to Lib/luts15bits.c
diff --git a/marques.c b/Lib/marques.c
similarity index 100%
rename from marques.c
rename to Lib/marques.c
diff --git a/mircol.c b/Lib/mircol.c
similarity index 100%
rename from mircol.c
rename to Lib/mircol.c
diff --git a/msglib.c b/Lib/msglib.c
similarity index 100%
rename from msglib.c
rename to Lib/msglib.c
diff --git a/mustopen.c b/Lib/mustopen.c
similarity index 100%
rename from mustopen.c
rename to Lib/mustopen.c
diff --git a/octree.c b/Lib/octree.c
similarity index 100%
rename from octree.c
rename to Lib/octree.c
diff --git a/op2x2.c b/Lib/op2x2.c
similarity index 100%
rename from op2x2.c
rename to Lib/op2x2.c
diff --git a/operat.c b/Lib/operat.c
similarity index 100%
rename from operat.c
rename to Lib/operat.c
diff --git a/pcx.c b/Lib/pcx.c
similarity index 100%
rename from pcx.c
rename to Lib/pcx.c
diff --git a/pht.c b/Lib/pht.c
similarity index 100%
rename from pht.c
rename to Lib/pht.c
diff --git a/png.c b/Lib/png.c
similarity index 100%
rename from png.c
rename to Lib/png.c
diff --git a/pnm.c b/Lib/pnm.c
similarity index 100%
rename from pnm.c
rename to Lib/pnm.c
diff --git a/ptlist.c b/Lib/ptlist.c
similarity index 100%
rename from ptlist.c
rename to Lib/ptlist.c
diff --git a/quadpics.c b/Lib/quadpics.c
similarity index 100%
rename from quadpics.c
rename to Lib/quadpics.c
diff --git a/rgbmask.c b/Lib/rgbmask.c
similarity index 100%
rename from rgbmask.c
rename to Lib/rgbmask.c
diff --git a/sobel4.c b/Lib/sobel4.c
similarity index 100%
rename from sobel4.c
rename to Lib/sobel4.c
diff --git a/tamppool.c b/Lib/tamppool.c
similarity index 100%
rename from tamppool.c
rename to Lib/tamppool.c
diff --git a/tele_2.c b/Lib/tele_2.c
similarity index 100%
rename from tele_2.c
rename to Lib/tele_2.c
diff --git a/television.c b/Lib/television.c
similarity index 100%
rename from television.c
rename to Lib/television.c
diff --git a/testtga.c b/Lib/testtga.c
similarity index 100%
rename from testtga.c
rename to Lib/testtga.c
diff --git a/tga.c b/Lib/tga.c
similarity index 100%
rename from tga.c
rename to Lib/tga.c
diff --git a/tools.c b/Lib/tools.c
similarity index 100%
rename from tools.c
rename to Lib/tools.c
diff --git a/turtle.c b/Lib/turtle.c
similarity index 100%
rename from turtle.c
rename to Lib/turtle.c
diff --git a/vignetize.c b/Lib/vignetize.c
similarity index 100%
rename from vignetize.c
rename to Lib/vignetize.c
diff --git a/zoom.c b/Lib/zoom.c
similarity index 100%
rename from zoom.c
rename to Lib/zoom.c
diff --git a/Paramakes.mk b/Paramakes.mk
new file mode 100644
index 0000000..c23f7af
--- /dev/null
+++ b/Paramakes.mk
@@ -0,0 +1,35 @@
+#
+# GLOBAL MAKE CONFIGURATION
+#
+
+DESTDIR=/usr/local
+SHARED_FILES=$(DESTDIR)/share/libimage
+HTML_DIR=$(DESTDIR)/html
+
+#-----------------------------------------------------------------
+#
+# pour le debuging: option -g
+# pour le profiling: option -pg
+# pour tracer plein de trucs: -DDEBUG_LEVEL=1
+# if IMGCOMMENT, the image comment is written to the TGA file,
+# but this files can't be loaded by Xv...
+# pour coredumper dans les situations graves: -DABORT=1
+#
+# --> see file 'PORTING.txt' for porting tips on misc
+# architextures (just sparc64 for now)
+#
+
+LIBIMG_OPT=-DFORCE_ABORT=1 -DDEBUG_LEVEL=0 -DIMGCOMMENT=0
+CC_OPTS=-Wall -W -g -ansi -Wmissing-prototypes -fPIC -no-pie
+CC_HACKS=-DNEED_ALLOCA_H
+CFLAGS= $(CC_OPTS) \
+ $(LIBIMG_OPT) \
+ $(CC_HACKS) \
+ -DDESTDIR=\"$(DESTDIR)\" \
+ -DSHAREDIR=\"$(SHARED_FILES)\" \
+ -DCC_OPTS=\"'$(CC_OPTS)'\"
+LINKOPT=-lm
+RANLIB=wc -c
+
+# modify it 'as you like'
+AR=ar
diff --git a/Tests/README.md b/Tests/README.md
new file mode 100644
index 0000000..1d6200d
--- /dev/null
+++ b/Tests/README.md
@@ -0,0 +1,3 @@
+# Some useless tests
+
+YMMV !