Changed data handling using maps and vectors for more dynamic behaviour (drawback so far: heavy RAM usage...)