Better subscribe and unsubscribe scripts

Parameterize script options and add unsubscribe script