bunch of changes

- switch to Visual Studio 2013
- add a lot of comments