Moved qif parsing to a separate lib and refactored import process