Adding visual studio solution
Added comments and made compatible.
Added comments and made compatible
Fixed memory leaks

The rvalue-queries weren't saved anywhere so there were a massive memory
leak.
Added const refs.