finished porting plug-in to API version 2.0
fixed some bugs with orthogonal digitizer