script cleaned up, increasing and decreasing membership functions marked as TODO