Add card name endpoint

Plus a bit of cleanup