make many changes

now the system have the basic archtecture