Added base files.
Initial copy of code; haven't added tests or validated that it works...