Added Membership scripts

Cleaned up some code, simplified some logic