Added parse_and_check/2 function to verify all required options

This patch adds a new function to verify that all required options have been given values.
It is a backward compatible change.