Updated module with the actual code that works properly. Starting to update the documentation of the module.