1st partially working version of uboot. only thing to finish is
deallocating the last heap page