Fixed MSVC warnings and added some notes