code cleanup and refactoring of the classes Laser, Serial and
WebCam