Move serialPort variable to the config.
Comments.
Fixed almost all the warnings.