Final API logic. Revised file organization. Begin command-line argument parsing.