BF:buffer must be filled with zeros on reset
Removed clang compiler warnings