working disc sim code, needs data and debugging