styles
fix some style bugs
implement some mark functions; add buffer_debug_dump