I'll put here some code I developed over the years. As is often the case, I did not pay much attention to readability when I wrote it and making it clean enough for public use is a long and painful process. Hopefully, more code will be added with time. TODO : taken from Nicolas Le Roux