Added core_hal and updated startup, main, utilities and makefiles