added missing comments, added getCurrentPos()