Fixed bug in getPitch
getPitch() provided nder certain conditions nan (not a number). The reason was a square root operation within the function where negative values could go in. Change it to absolute values.
Moreover I still found typos in the comments of the example sketch.