Added comments, removed unused stuff and translated debugs