Refactoring
Added ‘send’ on demand method.
Fixed NPE.
Changed gson dependency in classpath.