Fixes #2 - Added factory method

In order to obtain a valid client you can use the factory