Added support for appending imports (fixes #12)