Fix #9: Variable Scopes

Fix #9 variable scopes of imported files