implemented asynchronous serial communication, sending mt messages and
repaired function to calculate the checksum