little fixes, and translated IIFE part