Added better documentation and fixed logger formatting errors.