Initial module written by Gustavo F. Padovan, I changed it quite a lot to change some issues... but still many pending, see TODO at the start of e_mod_main.c SVN revision: 47160