cleaned up

also gf.c introduces galois field type