Add stat.
Remove printing of newline in perr. For that, add perrnl.
Use perrnl in _test.
Add pstat for printing a stat table.
Add pqid for printing a qid table.
Less verbose _test
Bounds checking in getqid and respective error handling.