Refactor NIST

This refactors the NIST module. Still need to update `nist.rst`, add remote tests