Refactoring Serial Port communication mode to Asynchronous Input to fix communication problem (still WIP)