Code cleanup, removed unnecessary require.
Added a logout function.
More code cleanup.
For the inventory listing, added headers and a Stack number.