Added old source code

First commit of source code grabbed from my dropbox. Its not been
tested but should* compile using VS 2010.