adjust files for code standards & remove trailing whitespaces

ref #25