Add a drs-spec text file.
Refactor code for clarity.