Add classes to read file including cfg file