add init definitions for buffer fill and size_deter
add test to main
add call to handler
add debug output