add documentation to card.scala and notecard.md