Refactor and update logging classes.
Spelling and formatting.
Updated to version 0.5.1