Bug Fix: was using ln not log2.

Also fixed some formatting, but the main fix was to go the standard of base-2 log which gives bits of entropy instead of natural log which gives nats.