Refactor StatusCheck - initialization and validation

Better initialization of StatusCheck and a validation method... 
This in turn allows improvement of the check_status method in client.rb

Also removed extra white space on some lines.