Code style now closer to PEP8 and some clarifications

Changed spacing to a more standard style. Non-standard variable naming and __main__ scope issues among others remain.

Changed variable name loglik to negdist to avoid confusion.

No changes from a functionality point of view except a new check for empty docuemnt list.
Corrected spacing and typos
Changed instructions to ge features