Tools for the reduction of APEX OTF data