Design and Implementation of Tools for STM Studies in UHV and at the Solid-Liquid Interface