Removes unused exceptions and adds a bit of documentation