Refactored set operations and fixed send_raw
Merge branch 'github17'