Added ping resource
Implemented read/write to RS232. Other changes.