Changed some of the elses to else ifs. Most functions still not working
at all
Moved a majority of the functions that were originally in ldtMain.cpp to
a new class, defined in ldtCommon.h. All functions created there are
defined in ldtCommon.cpp