Added simple, but excessive logging code.
Added option to log stages of execution.
Version upgraded.