Making Makefile more generic and less complicated
Now only one change is required for a different user to build the code.
Also a small test code is included in main.cpp to check the communication (at times)