Card creation and JSON file fixes