Created cards API and fixed stuff.