Small refacture of message method names, added high level functions to card applet