Testing&debug keyBuffers methods. Now functional. Documented. Some code cleanup