Added reading of irs from a binary file.
Print error message when port occupied.