Remove edges when there is too much vertices

Also added Fmod.