Tidying and indenting code