Adds spaces and fixes some mistakes in indentation