Changed indentation and fixed typos