ignore external sheets and more

Check option variables, use lodash and added option to ignore external sheets