Added sample code to create Object.
Restructured classes and fixed client handler.