fix indentation and properly convert to tabs