remove trailing spaces
fix examples