code cleanup

indents to spaces, removed trailing whitespaces