This function is used to normalize the options provided by the user. Validating the options passed by the user, and providing default values for a given set of options if none were provided.