rewrite into proper functions, that does well.
changed node package module name to "wechall".
updated with usage and explanations