Library for interacting with card readers