Added platform client. Refactored examples.