structure changes

the whole structure was rebuilt, classes were rewritten