Preliminary detector implementation.
Parse detector and multilayer sample.