#fix getfirstFreeNumber()
lib/errors.js update
#fix: check if mac is already registered
(cleanup)