Merge pull request #23 from Darquirrin/master

Macro API Additions
fixes #22, #25
fixed #21
fixed impersonation bugged after removing impersonated token