Moved cli and card classes to library folder as separated files.