added functionality for send and receive short and long.
added include guard to header file