incremental refactor 2014-06-18

Renamed several function names to make them more readable /
understandable. Cleaned up the code - remarked code is gone along with
the bulk of compiler warnings. Revised the function signatures that
returned BSTRs to return char * instead. In those functions, replaced
C-style string functions with C++ equivalents .