Format code according to conventions (remove trailing whitespace etc.)