added comments, synced the validations with actual validations on the server side, added support for card_capture API