Correct write file function.  Edit error message in load function.
Fix test for write PEC file function.
Complete teardown function
Remove unnecessary try/except block
Remove KeyError test
Add get specs functions and tests