cleanup semicolons, whitespace and mutable default arguments