addedheal function

also added beginning of simple inventory .