Fix insets

Created a generic SerializationUtility class that serializes and deserializes objects.