small fixes and update FiniteFields implementation