added #ifndef stuff to communications library