Removed support for layers in genes. Changed many classes accordingly.