BLK-40 BLK-39 Fixes debouncer and implements buffer

Signed-off-by: Oren Leiman <oleiman@neutral.io>