-Added XML documentation
-Fixed various compiler warnings