re implemented basic inv :P also the save handler

Works just as well but with less code :P