Made all stock/inventory/file classes serializable