string to hex convert function added.
comments updated.