Added functions to work with mac Adresses.
Modified ruler to use mac.h functions.