added comments, licence header and created new class for arduino server communication