Code formatting

Turn tabs to spaces, fix indentation, some typos.