Fixed some mighty VS2010 errors
Added files to VS2010 project file
Added pugixml library
Check if an entity is selected when asking for one