dded a small algorithm description. some small comments fixes.