fix some bugs and make ChatApp subclass object
Merge pull request #14 from radix/minor-fixes

fix some bugs and make ChatApp subclass object