Added support for multiple layers in class Genome and adapted all other classes to handle them correctly.