Added configurable buffer size to swserial