cleanup.
added doc.
started to add on charset switch, a bit of a mess at the moment.
charset switch works, next step is to add the acctual digits for diffrent charsets.