reformat and cleanup hcwin source code