fix typos
trim trailing white spaces
fix indents and coding styles
fix indents
trim trailing white spaces