added parameters to arduino sketch and gui