Some refactor off plugin

I looked at the code, added some small changes in the structure, also added the ability to manage zavisomstyami between the following questions. Later slightly expand this functionality. 
Wanted to know whether it is general to further develop or not?)