Fix indentation.
Remove useless test.
Remove custom exception types.
Use linkplain for text links.
Missed a few exception declarations.
WIP