Added logging library. And some error handling to client call.
Added some floor target boundary checking. More still needed.