Moved common variables to library and implemented receiver, should work now but I can't give a guarantee ;)