Working setup with serial library.

Added serial library for asynchronous reading/writing.
Write enabled on RS-485 only when needed.