added logging class

also cleaned up a little bit.
added mac address code

getting there