use accessors for languages

Instead of directly accessing the source_lang and target_lang
attributes of $self, use the accessors where possible.
convert tabs to spaces