PrivateKey: Add docs and refactor to use network object

extra `}` and indent here right?