Microarcsecond optical astrometry - an instrument and its astrophysical applications