Added transaction support

Updated reading certs to be transactional

Added function to connect to card