renamed things to match llvm coding standards (some still missing); replaced C-style casts with C++ casts