clean code and wrap AudioChunker library