Generic Inventory Remake

Changed to deserialization method and added some debug functions.