implemented distribution of tracks over layers
implemented frame-dir-removal