Refactored logging.
Removed error correction, not helpful enough to bother with. Converted inputs to bitstrings.