Initial code commit. Compiles and works for Visual Studio under Windows.