Getting indentation more homogeneous

Keeping only one new line at the end of each files, removing unnecessary double spaces (e.g. ";  }") and indenting uniformly.