code clean up
add auto record functionality
intoduce static threshold VAD