Refactored languages and created importer
Fixes #5: don't call $this from closure to support PHP 5.3