added some code to server and created hspell class to use as APIfor checking spelling