Adding Visual Studio project and some debug functions.