Added return codes for errors
Error states such as relays not found now return >0 error codes which can be tested for in scripts.
The return code is the number of errors found
Error states such as relays not found now return >0 error codes which can be tested for in scripts.
The return code is the number of errors found