Added options

Added options object to all functions (most do not use it right now).
refactored some functions to use 'caseSensitive' option