Fix type signatures and invalid logging calls.

Fix logging calls which use an incorrect format which are generating
errors in the log; fix incorrect type specifications.
Update formatting.

Update formatting and fix invalid type signatures.