fixed minors compiler errors

removed trailing whitespaces & added required semicolons