Added Gene class and a few functions.