Fixed comment errors and some minor compilation errors.