Added parse_and_check/2 function to verify all required options