Create Visual Studio 2010 project, bugfixes and formatting improvements.