Fixes typo (lenght: length), plus some indentations