Effectivized depth measurement

No more for loop. Not even sure if this is more effective, but it does
seem to be more intuitive!

Also, corrected part of readme.md.