Basic refactoring upgrade.

Some not important changes, that make code more flexible. In CPU_t.h.