convert indentation from hard tabs to spaces and some minor edit