Added explanatory comment on algorithm used + fixed typo