removes trailing whitespace
removes some crap