first working example
fixed loader and tested with existing settings.
closing serial port still an issue