Fix documentation.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor prepare_file() as instance method. Update language settings with one of these.

Signed-off-by: Norv <a.w.norv@gmail.com>