Mod logemeny

Final tweaks to the module and some SEF work. more work to be completed in a new branch