Update Fgen.m

+ verification for valid input on setting voltages and frequencies