refactored flake to generate from flakegene
refactor from dna to crystalgene
refactoring - removed unused variables and functions