Added examples and allow function name for cardtype function