improve Jid class a bit

	- add char counter function

	- fix whitespace issues

	- fix typos