Removed debugging output
Passing data to brushend
Rewrote merge function. Fixed $http params (omg)