added support for radio boxes and selected options and fixed error related to input[type=text] fields with empty values, related to issue #5.