Fix coding style
Fix #if in scr_refresh, doc, indenting