Added menu code
Added main menu to core
split off some util stuff into util from ui