Add comment about generic utility methods.
Move main functions to api/ folder.
Add buffer to debounce test.