Improved xdimenu, added comments.