Kingtak tailored on my comp and error tested.
merged with ttymed's repo