Integrated changes to 3elexisFormatter into ruby script