Added settings file and option to customize imports
Added propper exception handling.