Visual Studio 13 fixes; added example app; app refactor