Macro to Addin trouble

So I've done some searching and I'm an intermediate programmer at best.  I can't figure out how to change my Macro to an Addin and have it register and startup with Solidworks.  Can anyone help me convert this Macro to an Addin?

SolidworksApi macros