Updated first pointer.
Modified some old functions to get the basic ui up and running.