Fixed (commented) bug in the port of the tfmxne function, also added a debugged script of an example using it