Almost final version
May be problem in rings-detectors realization
A lot of comments and other things would be deleted