cleaned up the inteface of the max patch and added various improvements
thinking of better implementation of interface element selection