Finish of core

all the core is finished
now missing is only the UI