throw error on empty file, fix global introduction, mark module and export as keywords