Added __ComObject, updated some coding style