Make a class from optionEntry struct.

This allows to use a constructor and specify fields values instead of
sick initializing every member of struct. I know that this might be
done with structs and constructors, but I went with classes.