Added Visual Studio 2013 project, fixed some bugs, etc...