Fix closestNote.
Fix BlockBuffer.add method.
Rename BlockBuffer file.
Fix window functions.