started making a better inventory setup and popup.

and lots of minor changes,