Fixed syntax errors in the library file.
Fixed and tested the open-spec-file function in the library.